<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型</title>
    <style>
        *{
            padding: 0px;
            margin: 0px;
            box-sizing: border-box;
        }
.wrapper{
    width:234px;
    height: 340px;
    background-color: rgb(210, 227, 241);
    text-align: center;
    margin: 100;
    padding: 10;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 50px;
    transition: all 0.3s linear;
    
}
img{
    width: 160px;
    height:160px;
}

.discount{
    color: rgb(236, 170, 85);
}
.old{
    color: gray;
    text-decoration: line-through;
}
p{
    margin-bottom: 20px;
}

.wrapper:hover{
    box-shadow: 10px 5px 10px gray ;
    margin-top: 40px;
    background-color: azure;
}

    </style>
</head>
<body>
    <div class="wrapper">
        <img src="phone1.webp">
        <p>Redmi Note 14 pro+</p>
        <p>第三代骁龙®7s</p>
        <p>
            <span class="discount">1899元起</span> 
            <span class="old">1999元</span> 
        </p>
    </div>
</body>
</html>